/*
  箭头函数
    -简化了回调函数的编写
    -不会改变this的指向
*/
// function add(v) {
//  return v+1
// }

// let add = (v) => v + 1;
let arr = [1, 2, 3, 4];
console.log(arr.filter((v) => v % 2));

const person = {
  name: "caozy",
  sayHiAsync() {
    setTimeout(() => {
      console.log(this.name);
    }, 200);
  },
};
person.sayHiAsync();
